import request from '@/utils/request'

export function sorting_index(params) {
  return request({
    url: '/sorting/index',
    method: 'get',
    params
  })
}

export function sorting_text(params) {
  return request({
    url: '/sorting/text',
    method: 'get',
    params
  })
}

export function sorting_add(params) {
  return request({
    url: '/sorting/add',
    method: 'post',
    params
  })
}

export function sorting_accumulation(params) {
  return request({
    url: '/sorting/accumulation',
    method: 'post',
    params
  })
}

export function sorting_edit(data) {
  return request({
    url: '/sorting/edit',
    method: 'post',
    data:data
  })
}

export function sorting_revoke(params) {
  return request({
    url: '/sorting/revoke',
    method: 'post',
    params
  })
}

export function sorting_stock(params) {
  return request({
    url: '/sorting/stock',
    method: 'post',
    params
  })
}


// 分拣监控 
export function sorting_all(params) {
  return request({
    url:'/sorting/all_sort',
    method:'get',
    params
  })
}

// 分拣全部
export function sort_list(data) {
  return request({
    url:'/sorting/sort_list',
    method:'post',
    data:data
  })
}

// 撤销全部
export function revoke_list(data) {
  return request({
    url:'/sorting/revoke_list',
    method:'post',
    data:data
  })
}


// 测试
export function ceshi(data) {
  return request({
    url:'/template/eee',
    method:'post',
    data:data
  })
}

// 生产日期修改
export function sorting_add_time(data) {
  return request({
    url:'/sorting/add_time',
    method:'post',
    data:data
  })
}


// 操作日志
export function sorting_log_list(data) {
  return request({
    url:'/sorting/logs_list',
    method:'post',
    data:data
  })
}